package com.gitee.feizns.upload.domain.prop;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

/**
 * @author feizns
 * @since 2019/8/9
 */
@Data
@ConfigurationProperties("authorization.config")
public class AuthorizationConfigProperties {

    /**
     * http请求头
     */
    private String httpHeader = "Authorization";

    /**
     * 公钥
     */
    private String publicKey;

    /**
     * 私钥
     */
    private String privateKey;

    /**
     * 允许访问的密码
     */
    private List<String> pwd = new ArrayList<>();

    /**
     * 开启还是关闭认证
     */
    private boolean enable = Boolean.TRUE;

}
